package com.mercury.pattern._14_visitor;

import java.util.ArrayList;
import java.util.List;

public class ObjectStructure {
    List<Person> persons;

    public ObjectStructure() {
        persons = new ArrayList<>();
    }

    void add(Person person){
        persons.add(person);
    }
}
